﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ws="clr-namespace:Creventive.Wpf.ShellFactory.Workspace"
                    xmlns:wsp="clr-namespace:Creventive.Wpf.ShellFactory.Workspace.Primitives">

	<Style TargetType="{x:Type ws:MultiViewWorkspace}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ws:MultiViewWorkspace}">
					<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<wsp:WorkspaceItemsPresenter ItemsSource="{TemplateBinding Items}" Margin="{TemplateBinding Padding}">
							<wsp:WorkspaceItemsPresenter.ItemsPanel>
								<ItemsPanelTemplate>
									<WrapPanel IsItemsHost="True" />
								</ItemsPanelTemplate>
							</wsp:WorkspaceItemsPresenter.ItemsPanel>
						</wsp:WorkspaceItemsPresenter>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>